package com.sne.airways.system.dao;

import com.sne.airways.basecore.exceptions.AppException;
import com.sne.airways.system.pojo.TdRole;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-23
 * Time: 下午5:46
 * To change this template use File | Settings | File Templates.
 */
public interface RoleDAO {
    /**
     * 查询角色列表
     * @param roleNo
     * @param roleName
     * @param status
     * @param start
     * @param limit
     * @return
     */
    public List<TdRole> queryRoleList(String roleNo, String roleName, String status, int start, int limit) throws AppException;

    /**
     * 查询角色记录总数
     * @param roleNo
     * @param roleName
     * @param status
     * @return
     */
    public Integer queryRoleCount(String roleNo, String roleName, String status) throws AppException;
    /**
     * 查询角色编号  名称是否重复
     * @param roleNo
     * @param roleName
     * @param status
     * @return
     */
    public Integer queryRoleIsRepeat(String roleId,String roleNo,String roleName, String status) throws AppException;
    public List<TdRole> queryRoleCheckedList() throws AppException;
}
